import requests

url = "http://localhost:8000/generate"
data = {
    "prompt": "如何学习Python编程？",
    "max_length": 1024,
    "temperature": 0.7
}

response = requests.post(url, json=data)
print(response.json()["result"])
